import service from ".";
import { LoginFormInit } from "@/type/login";

export function login(data: LoginFormInit) {
  return service({
    url: '/login',
    method: 'post',
    data
  })
}

export function getGoodsList() {
  return service({
    url: '/getGoodsList',
    method: 'get'
  })
}
export function getUserList() {
  return service({
    url: '/getUserList',
    method: 'get'
  })
}
export function getRoleList() {
  return service({
    url: '/getRoleList',
    method: 'get'
  })
}

export function getAuthorityList() {
  return service({
    url: '/getAuthorityList',
    method: 'get'
  })
}